<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "generalocr_pdf".
 *
 * @property int $id
 * @property string $title 案卷名称
 * @property string $filename 文件名
 * @property string $path 文件路径
 * @property int $user_id 上传人
 * @property string $created_at 上传时间
 */
class GeneralocrPdf extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'generalocr_pdf';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id'], 'integer'],
            [['created_at'], 'safe'],
            [['title', 'filename', 'path'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'title' => '案卷名称',
            'filename' => '文件名',
            'path' => '文件路径',
            'user_id' => '上传人',
            'created_at' => '上传时间',
        ];
    }

    /**
     * @inheritdoc
     * @return GeneralocrPdfQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new GeneralocrPdfQuery(get_called_class());
    }
}
